home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia 1995 April / Informatica Multimedia CD - Epimundo.iso / DOS / FILE_CHG / CUTZSDF.ZIP / CUTZ-SDF.DOC < prev    next >
Encoding:
Text File  |  1990-08-08  |  32.9 KB  |  611 lines

  1.                                 C U T Z - S D F                     
  2.                                
  3.                                  COPYRIGHT 1990
  4.                                  by David Roper
  5.                             201 Winding Brook Drive            
  6.                                 Garner, NC 27529           
  7.  
  8.                          Copy Freely and give to others
  9.                            (Pay me nothing, Enjoy it)
  10.  
  11.         This is a specialized "tool" which will help computer workers 
  12.         to "CUT and change" the SDF type files that are produced by 
  13.         MainFrame computers when they download data for a PC.  Also, 
  14.         some database programs use the SDF format to share data. 
  15.  
  16.         New terms?   SDF means "Standard Data Format" to some people.
  17.                      SDF means "Standard Delimited File" to others,
  18.                      SDF means  TEXT-EDITOR to some others, and
  19.                      SDF means "Stupid, Dumb, Frustrating" to others.
  20.  
  21.         SDF is a type of record where all the FIELDS "run" together, 
  22.         next to each other, no delimeters for fields, and each RECORD 
  23.         (made up of many fields, remember?) is separated by a Carriage 
  24.         Return and LineFeed so that you CAN see them and read them 
  25.         using any word processors which can handle ASCII text. 
  26.  
  27.         The little DEMO at the beginning of the program has 10 "one-
  28.         character fields," FYI.  Any of the Demo screens or the other 
  29.         timed screens can be speeded-up by pressing ENTER or any other 
  30.         key.  A reward for those of you who have read this far. 
  31.  
  32.         Here is a synopsis of the features of CUTZ-SDF so you won't 
  33.         have to read this whole DOC file to understand what it does.
  34.  
  35.         If you have a SDF file, you may want to ADD bytes (chrs) to it 
  36.         or DELETE bytes (chrs) from it before you append it to a dBASE 
  37.         file or any other file or DATABASE.  I used to use my trusty 
  38.         WORD PROCESSOR.  It works, but slowly, and a pain in the ASCII.  
  39.  
  40.         CUTZ-SDF was "born...." so that it will do these "tricks:"   
  41.           
  42.         Relax, you should be able to run CUTZ-SDF WITHOUT reading any 
  43.         further than this line here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  44.         
  45.         Go ahead, do a DIR, now, to find a sample DATA set and TRY it 
  46.         WITHOUT reading any more.   Then come back to here!!!!!!!!!!!
  47.         ---------------------------------------------------------------
  48.         
  49.         (1) INSERT (or Add) characters to a record as if you had CUT 
  50.             the record, inserted the characters into the middle, and 
  51.             then glued the pieces of the record back together again. 
  52.         (2) DELETE characters in any column (any position), because you 
  53.             may not NEED TO USE or append THAT field to a database. 
  54.         (3) PAD all records at the Left side or the Right side in order 
  55.             for them to be a certain, known length for importing. 
  56.         (4) CHANGE will find a string of characters at a certain 
  57.             location and replace all of them with something else.  This 
  58.             is like a Global Search and Replace, but Selective, because 
  59.             it will only CHANGE it IF it finds a match. 
  60.         (5) LOOKUP.....part of CHANGE, also.  Look at a certain 
  61.             position and if it matches with a value in the LOOKUP file 
  62.             then replace with the value (or string) that you want it to 
  63.             be.  This is a VERY selective Search and Replace because 
  64.             you can have up to twenty-five items to LOOK FOR in a 
  65.             position and twenty-five matching REPLACEMENTS FOR IT.   
  66.             See instructions below under the paragraph "LOOKUP." 
  67.         (6) FILTER will allow you to Filter or "Pull out," or "Yank" 
  68.             records that match a certain string in a certain position.  
  69.             Useful if you want another file made from a master source 
  70.             file.  FILTER, or Yank, just the 1989 Patient records from 
  71.             a much larger file containing 1985, 1986, 1987, 1988, 1989, 
  72.             and 1990 records. 
  73.         (7) MOVE a part of a record to another part of the record.  
  74.             This is as if you had scissors and were able to CUT and 
  75.             PASTE.  The size of the record will not change.  You will 
  76.             be just moving things around inside each record.  Often, 
  77.             you will have to change a DATE like 07/04/76 to 76/07/04.
  78.         (8) Use Switch /H to HACK.  This will HACK or CUT the file into 
  79.             two Horizontal pieces.  You can specify the size to make 
  80.             the LEFT side,....the RIGHT side will be what is left over.  
  81.             Later, you can GLUE the pieces back together to make it 
  82.             "whole" again. Example: make a file with records of 1000 
  83.             bytes each, into two files with records of 400 each and 600 
  84.             bytes each.  See the picture below for an example of this.
  85.         (9) Use Switch /F to FIX a file so that each record is a 
  86.             certain length or a certain size, insuring each record will 
  87.             be that certain size by padding it or cutting it.  The PAD 
  88.             character can be specified, /P ##, to be ANY ASCII character.
  89.        (10) Use Switch /S 1 to make the delay 1 second between each 
  90.             screen in the program in case you want to speed it up.
  91.             Likewise, /S 6 will slow the demo down to 6 seconds per 
  92.             screen if you need more time between screens.
  93.        (11) Use Switch /T to TEST your file and tell you what size it 
  94.             is, maximum record length, minimum record length, etc. 
  95.        (12) When you are viewing a record from your file (to use as an 
  96.             example), you can view another by using the Up and Down 
  97.             Arrow keys.  The HOME key will return to RECORD #1. Alt-J 
  98.             will allow you to go to any record number if you know it.
  99.  
  100.         This next thing will be a "problem" for some of you to 
  101.         "swallow." CUTZ-SDF does "require" that when you CREATE your 
  102.         new, altered version of the original file, you give it a NUMBER 
  103.         (from 1 to 998) for the 3-character extension.  It's for YOUR 
  104.         benefit because the extensions are incremented as you create new 
  105.         files each time.  For example: If your original file is named 
  106.         MY-DATA.SDF, then make the first (1st) version of your altered 
  107.         data with this name:  MY-DATA.1, the second version into: 
  108.         MY-DATA.2, etc.... never, ever touching the original data. 
  109.         
  110.         Now, let's look at some sample data....
  111.  
  112.         Here's an example of 5 records (60 bytes each) in SDF format
  113.  
  114.         ROPER       DAVID     GARNER    NC 27529CUTZSDF1EXE112089SWM  
  115.         MCDUFFIE    KATHRYN   RALEIGH   NC 27611CUTZSDF2COM122789DMF  
  116.         TRUMAN      TEE       WILSON    NC 27456CUTZSDF3EXE050990SBM  
  117.         BRANCOWITZ  ADRIAN    ELLOREE   SC 29876CUTZSDF4COM051090BDW  
  118.         WILSON      KAY       COLUMBIA  SC 29206CUTZSDF5EXE051290SWW 
  119.         ^---------------------^-----------^----------------^^--^^---
  120.         123456789012345678901234567890123456789012345678901234567890  
  121.                  1         2         3         4         5         6 
  122.          
  123.         The above line of 60 numbers is a "ruler" so you won't have to 
  124.         count 60 characters across in this example. 
  125.  
  126.         If you look at them, you can tell that the LASTNAME field starts 
  127.         at position #1, the CITY at position #23, the date at pos. #52
  128.  
  129.         With CUTZ-SDF, you can DELETE (take out) the extra space at 
  130.         position #35.   It's marked for you with a carat, little hat^.
  131.  
  132.         With CUTZ-SDF, you can MOVE the year at pos. #56 and #57 to 
  133.         between the extension types and the months.  Then the YEAR 
  134.         would come first, and the MONTH second, and the DAY third.  May 
  135.         5th, 1990 as an example: 051290 becomes 900512. Then you could 
  136.         add the prefix "19" to the year so it becomes this:  19900512 
  137.         
  138.             These positions are marked with a carat, a little hat^.
  139.         
  140.         Here is the group of the above SDF records after the "DELETE 
  141.         position 35," the "MOVE the year to the left," and the "INSERT 
  142.         or ADD the 19" to the 2 digits for the year at positions 53 
  143.         and 54.  See below, the years 89 and 90 in positions 53 and 54. 
  144.  
  145.         ROPER       DAVID     GARNER    NC27529CUTZSDF1EXE19891120SWM  
  146.         MCDUFFIE    KATHRYN   RALEIGH   NC27611CUTZSDF2COM19891227DMF  
  147.         TRUMAN      TEE       WILSON    NC27456CUTZSDF3EXE19900509SBM  
  148.         BRANCOWITZ  ADRIAN    ELLOREE   SC26543CUTZSDF4COM19900510BDW  
  149.         WILSON      KAY       COLUMBIA  SC29206CUTZSDF5EXE19900512SWW  
  150.                                          /\               ^^''         
  151.         1234567890123456789012345678901234567890123456789012345678901  
  152.                  1         2         3         4         5         6   
  153.  
  154.         Notice that the size of each record increased by 1 character.    
  155.         We added 2 chrs, "19"; subtracted 1, " "; for a net addition of  
  156.         ONE, 1, character to the record....to EACH record.  2 - 1 = 1.   
  157.  
  158.         Each time you run CUTZ-SDF.EXE, you will be prompted for the 
  159.         name (add the path if needed) of your SDF file.  You should 
  160.         rename the SDF file so that it has a number from 1 to 998 for 
  161.         the extension.  Example: MYDATA.SDF  becomes  MYDATA.1 
  162.  
  163.         Each time you manipulate the SDF data, you will make a new file 
  164.         with a new extension number.  IF YOU USE NUMBERS FOR THE 
  165.         EXTENSIONS, THEN ALL YOU HAVE TO DO TO MAKE ANOTHER FILE (after 
  166.         the initial one) is to PRESS [Enter].   It's easy, you'll see.  
  167.         
  168.         First, it's CUTZTEST.1, then CUTZTEST.2, then CUTZTEST.3, etc. 
  169.         If you start with CUTZTEST.100, the next would be CUTZTEST.101, 
  170.         etc.  Extensions cannot go above 999 obviously, there's a trap 
  171.         for that in case you want to test it...  If you make more than 
  172.         999 changes, you need a new DATA DOWNLOAD, you don't need this 
  173.         program to make THAT many fixes. 
  174.  
  175.         You always see the first record of the file to use as a guide. 
  176.         As distributed from me, "CUTZ-SDF" comes with a "CUTZTEST.1" 
  177.         file for you to see and play with.  If you don't like the first 
  178.         record being the example to use, then you can press the down 
  179.         arrow for the next record, etc., etc.  You can return to the 
  180.         first record again by pressing the HOME key if you "stray too 
  181.         far" using the UP ARROW and DOWN ARROW keys. 
  182.  
  183.         The effective length of the record to be altered is about 400 
  184.         bytes or so.  CUTZ-SDF will actually do more, but the screen 
  185.         will not hold but 2000 characters total, remember, 80 X 25? 
  186.         Use the /HACK switch (below) if you need to work with pieces 
  187.         that will fit onto the screen.  Then /GLUE them back together.
  188.  
  189.         PADDING means to add characters onto the left or right side of 
  190.         a record.  Some SDF files must be padded to be a certain size.
  191.         CUTZ-SDF will do this for you easily, also.
  192.  
  193.                               ╔═════════════════╗
  194.                               ║ S W I T C H E S ║
  195.                               ╚═════════════════╝
  196.  
  197.         There are six command line switches which may be of use to 
  198.         you.   They are /T, /F, /P, H, /G, and /S .  All one letter. 
  199.        
  200.         /T is to Test a file for Max and Min record lengths, etc.
  201.         /F is to Fix the lengths of records
  202.         /P is for the Pad character definition (optional)
  203.         /H for Hacking 
  204.         /G for Gluing
  205.         /S for the number of Seconds in a display, normally 2 seconds
  206.         --------------------------------------------------------------
  207.  
  208.         /H ### will HACK (or Cut) ### bytes from each of the records 
  209.                and force them into a LEF_t file and a RIG_ht file with 
  210.                extensions to match!  ".LEF" and ".RIG" are the names.
  211.  
  212.         /G     Will GLUE those two files together again - side by side.  
  213.                Humpty Dumpty needed this one.  These two features, /H 
  214.                and /G, will allow you to use CUTZ-SDF with large files 
  215.                (records longer than 400 bytes or so.) 
  216.  
  217.         examples:
  218.         
  219.         To HACK (CUTZ) the "front", "first", "left side of" of large 
  220.         records in a file, do this:  Place the number of bytes to cut 
  221.         after the /H switch such as this (for 256 bytes)
  222.         >CUTZ-SDF B:MYDATA.1 /H 256 
  223.         Here is a picture of two files created from one file that 
  224.         contained the alphabet.  It was Hacked at 15 (ie /H 15) 
  225.  
  226.                               before:  B:MYDATA.1
  227.                            ┌──────────────────────────┐
  228.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  229.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  230.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  231.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  232.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  233.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  234.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  235.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  236.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  237.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  238.                            │ABCDEFGHIJKLMNOPQRSTUVWXYZ│
  239.                            └──────────────────────────┘
  240.         
  241.                            After the Hack at 15 bytes    
  242.                    by doing this   >CUTZ-SDF B:MYDATA.1 /H 15    
  243.  
  244.              B:MYDATA.LEF                              B:MYDATA.RIG 
  245.            ┌───────────────┐                           ┌───────────┐
  246.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  247.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  248.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  249.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  250.            │ABCDEFGHIJKLMNO│          you make         │PQRSTUVWXYZ│
  251.            │ABCDEFGHIJKLMNO│<-----------and----------->│PQRSTUVWXYZ│
  252.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  253.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  254.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  255.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  256.            │ABCDEFGHIJKLMNO│                           │PQRSTUVWXYZ│
  257.            └───────────────┘                           └───────────┘
  258.               At this point, you MAY want to rename the two files
  259.       
  260.                                      Later, 
  261.         
  262.                To GLUE them BOTh back together, use the /G switch    
  263.  
  264.                      >CUTZ-SDF B:MYDATA.LEF B:MYDATA.RIG /G      
  265.                                         ~~~          ~~~           
  266.         Notice that the "LEFt" side goes first and then the "RIGht"  
  267.         You will make a new file>  B:MYDATA.BOT, "BOT" means "BOTH"  
  268.  
  269.         If you were to "/G" (glue) these two files together, the .LEF 
  270.         and .RIG files, to make ".BOT" it would look like the original 
  271.         B:MYDATA.1 if no changes were made to the ".LEF" or ".RIG" 
  272.         file.                 
  273.         
  274.         You can Glue, /G, only two files together at a time.  Remember, 
  275.         Gluing is "side by side" while DOS' COPY is "end to end"
  276.         ---------------------------------------------------------------
  277.         /T 
  278.  
  279.         The Syntax to test lines in CUTZTEST.1 is this:    
  280.                                     ~~~~~~~~~~             
  281.         >CUTZ-SDF CUTZTEST.1  /T           
  282.                   ~~~~~~~~~~              
  283.         where the name of the file comes directly after the CUTZ-SDF.EXE
  284.         file name.  It can be in any path.  Here, it is in the same 
  285.         path with the CUTZ-SDF.EXE file.  The /T switch tells it to TEST.
  286.         ---------------------------------------------------------------
  287.  
  288.         /F ###
  289.  
  290.         The Syntax to fix the length of each record is this:
  291.  
  292.         >CUTZ-SDF CUTZTEST.1 /F ###
  293.         
  294.         where the name of the file to fix comes directly after the 
  295.         CUTZ-SDF.EXE.  Here, it is the CUTZTEST.1 file.  The /F says to 
  296.         FIX the length of each record in CUTZTEST.1 .  The number, ###, 
  297.         after the /F tells how long to make each record.  The extra 
  298.         bytes are Chopped Off the right side of each record to insure 
  299.         that each record is the size, ###.  The new FILE name created 
  300.         will contain the number/size, ###, in its name.  
  301.         
  302.         For instance: If you used /F 65  for the size, then the new file 
  303.         would be named SIZE65.SDF .  Each record would be chopped so 
  304.         that they all would be 65 bytes long and... if a record were 
  305.         less than 65 characters then it would automatically be PADDED 
  306.         with ASCII 32 (hex 20), a space, until it reaches a length of 
  307.         65.  But, you don't HAVE TO pad with spaces (ASCII 32).
  308.         ---------------------------------------------------------------
  309.  
  310.         /F ### /P ###
  311.  
  312.         Or, if you want it padded with another ASCII character then 
  313.         include the switch /P ###  somewhere on the line, also.  The 
  314.         ### is a decimal number 0 to 255.  Example:  To make them all 
  315.         65 chrs and pad with a "9" if any are "shorter" than 65 
  316.         characters.  (The character "9" is ASCII decimal 57.) 
  317.  
  318.         >CUTZ-SDF  CUTZTEST.1  /F 65   /P 57  
  319.         
  320.         This will work just as well (with NO spaces in the switch):  
  321.  
  322.         >CUTZ-SDF CUTZTEST.1 /P57 /F65    (notice the P before F)
  323.  
  324.         Or even this:
  325.  
  326.         >CUTZ-SDF cutztest.1 /F65/P57     (notice the F before P, again)
  327.  
  328.         However, you must leave one space (or two) between the SDF 
  329.         Filename and the Switches so I can tell where one leaves and 
  330.         the other takes off..... 
  331.  
  332.         With /P 57 as a switch, any SHORT RECORD would be padded with 
  333.         the character "9", an ASCII 57, to make it have a length of 65 
  334.         characters.  MOST PADDING is done with decimal ASCII 32, the 
  335.         space character.  And all along, you thought that George Jetson 
  336.         was the space character!!! 
  337.  
  338.         Here is the group of the above SDF records after you FIXED the 
  339.         length to be 65 and used the character "9" to do the PADDING.
  340.                                                                           
  341.         ROPER       DAVID     GARNER    NC27529CUTZSDF1EXE19891120SWM9999 
  342.         MCDUFFIE    KATHRYN   RALEIGH   NC27611CUTZSDF2COM19891227DMF9999 
  343.         TRUMAN      TEE       WILSON    NC27456CUTZSDF3BAT19900509SBM9999 
  344.         BRANCOWITZ  ADRIAN    ELLOREE   SC26543CUTZSDF4COM19900510BDW9999 
  345.         WILSON      KAY       COLUMBIA  SC29206CUTZSDF5EXE19900512SWW9999 
  346.                                                                      ^^^^ 
  347.         12345678901234567890123456789012345678901234567890123456789012345 
  348.                  1         2         3         4         5         6 
  349.  
  350.         YOU WILL NEVER HURT THE ORIGINAL... and especially NOT if you 
  351.         copy your original and rename the ".SDF" extension to a number 
  352.         such as ".1"  Most SDF downloads will have an EXTENSION of SDF 
  353.         so that you will know what type of file it is.  Not always!
  354.  
  355.         /S ## will change the default number of seconds for the DEMO 
  356.               and the other timed events in CUTZ-SDF.  If you want a 
  357.               fast DEMO, then start your session with> CUTZ-SDF /S .1
  358.               for a tenth of a second delay.  The maximum delay is 10 
  359.               seconds, but who would want that?  It's boring enough at 
  360.               a delay of 2 seconds.
  361.  
  362.         ===============================================================
  363.         LOOKUP feature:  (explained)
  364.  
  365.         Added with the version 1.8 is the ability for you to inspect a 
  366.         portion of a record and see if it is contained in another file.  
  367.         If it is, then the string (or numbers) associated with the word 
  368.         found will be put into the record at that point.  This is 
  369.         similar to a table lookup.  At position 50 in the record, if 
  370.         you find XYZ, replace with ABC, find DEF replace with TUV, 
  371.         twenty-five combinations can be used at one time. 
  372.  
  373.         First, you create a file using DOS or any plain ASCII editor.  
  374.         WORD PERFECT, WORD STAR and MICROSOFT WORD won't make ASCII 
  375.         text unless you force them.  Sometimes they refer to ASCII as 
  376.         "DOS FORMAT."  Why don't they just say "ASCII?"
  377.  
  378.         You might use PCWRITE, QEDIT, E88, PDE, or 999 others.
  379.  
  380.         In the file, on each line are two words, separated by a comma.
  381.         The left side contains the "word" you are looking for...
  382.  
  383.         ....then comes the comma....
  384.         
  385.         ....then the right side contains the "word" that you want to 
  386.         have pasted into the record where the first word was.  What a 
  387.         mouthful!   The Left side should be the same number of CHRS as 
  388.         the right side if you're REALLY just going to REPLACE CHRS. 
  389.  
  390.         Like this:             
  391.         
  392.         01,AL    
  393.         02,NU    
  394.         03,LO    
  395.         04,XX    
  396.         
  397.         If you want to put a REMark or comment into your file along 
  398.         WITH THE DATA (ie WITH the four items, the four lines), you 
  399.         can.  Just START THE LINE with three chrs, "REM" (or rem.)  
  400.         Any line with the FIRST 3 chrs as REM will be skipped and 
  401.         ignored.  Here is the file above with REMarks added into the 
  402.         file.  Don't use the Quotes around REM as above.
  403.  
  404.         01,AL
  405.         REM  AL is Alphabetical Type - this is a comment    
  406.         02,NU                        
  407.         REM  NU is Numeric Type in version 3.28 - this is a comment
  408.         03,LO
  409.         REM  03 is the db:PICK5 code for LOGICAL, not the dBAS3:R code
  410.         rem     because that stopped in 1987 with version 3.31 
  411.         rem     - this is the third line of a big comment
  412.         04,XX
  413.         ^
  414.         ^      PLEASE NOTE THIS:          
  415.         The hat ^, or arrow ^, here is pointing to the FIRST character,
  416.         first column in the file, but due to this DOCUMENT having 
  417.         MARGINS, it doesn't look like the first column/character.
  418.         
  419.         Make the name of the file: CUTZLOOK.UP.  Actually, make it 
  420.         anything you want.  You will get the opportunity to tell the 
  421.         CUTZ-SDF what the name of it is, later on, when you use it. 
  422.  
  423.         Here's what happens using the above example.
  424.         When "01" is found, then "AL" will be put there in its place.  
  425.         If "02" is found instead, then "NU" will be used.  If "03" is 
  426.         found, then "LO" will be pasted, and if "04" is found, we will 
  427.         put "XX" there.  There are four, 4, examples in this file.
  428.         The length of the item on the Left side must be the same as the 
  429.         length of the item on the Right side for a proper substitution.
  430.  
  431.         This example above is showing four, 4, items on the left side, 
  432.         to be searched or looked up.  The number that CUTZ-SDF normally 
  433.         handles is up to 25 items.  If you need for it to handle more 
  434.         than 25, then use /DIM ## as a switch.  For example: if you 
  435.         need to have 78 items (78 lines, each line contains a comma and 
  436.         two words) then use this switch> CUTZ-SDF /DIM 78 
  437.  
  438.         The Maximum size that the Switch /DIM will take is 1000 --- if 
  439.         your RAM memory can hold it, that is.  Each line takes 10 bytes 
  440.         of RAM memory for the arrays BEFORE the item (the actual word) 
  441.         is placed into RAM.  The above 4 lines take 4*10 or 40 bytes 
  442.         for the array pointers and another 4*2 + 4*2 (=16) for the 
  443.         eight words or strings.  That's a total of a whopping 56 bytes 
  444.         which any PC can handle easily.  But, you have a PCjr?  Oops. 
  445.  
  446.         Again, 25 items (or lines) is the normal value without having 
  447.         to use any /DIM Switch at all. 
  448.  
  449.         How do you use this LOOKUP feature, now that you have created 
  450.         the file?  Easy, Select "CHANGE" as your choice of the options.  
  451.         But, wait, there's more.  It's easy, though.  To use the Table 
  452.         Lookup file that you have created, simply put the name of the 
  453.         file into the "DATA to look for" quotes (as if THAT is what you 
  454.         were looking for.)  You must also, put the name AGAIN into the 
  455.         quotes when it asks "Change to what DATA?" 
  456.  
  457.         The key (secret) to using your LOOKUP file is to put the 
  458.         LOOKUP filename TWICE instead of the actual DATA or word, etc. 
  459.         when you use the CHANGE option.  Both times, type the same 
  460.         thing, the same filename (and path if used.)  If I see an exact 
  461.         match then I will use that FILESPEC as the source of things to 
  462.         try to find and change. 
  463.         
  464.         It's easier to use than it is to explain or write about.  In 
  465.         fact, CTL-F will duplicate the filename for you without your 
  466.         having to type it in again.  ^-F means CONTROL-F. 
  467.  
  468.         If you took my advice and named the file CUTZLOOK.UP then you 
  469.         can have that name placed inside the quotes by doing an ALT-F, 
  470.         abbreviated as @-F.  That's the lazy way out if you don't have 
  471.         a lot of different Lookup Files to choose from.
  472.         =============================================================== 
  473.  
  474.         The CUTZ-SDF program will look blue and white on a color 
  475.         monitor and look Black and white on a NON-color monitor such as 
  476.         a Hercules Amber, etc.  If you want different colors send me 
  477.         $100 and you will get it.  I'll even pay the postage, heh, heh.
  478.          
  479.         Better Still, use two "undocumented switches" called /W and /B.
  480.         /W# for Word color (foreground) and /B# for Background color.  
  481.         
  482.         An example for RED words on GREEN would be >CUTZ-SDF /W 4 /B2    
  483.         
  484.         Use these Colors: 0 black, 1 blue, 2 green, 4 red, 7 white, etc.  
  485.         You can find more in any BASIC manual that comes with DOS.
  486.  
  487.         HISTORY
  488.         =========
  489.  
  490.         V 1.0         NOV 20,'89  ...Beta only.  It moves chrs to right 
  491.                                      side of a position. 
  492.         v 1.1         DEC 27,'89  ...Added the variable Ruler (reverse 
  493.                                      color) to ease counting the 
  494.                                      positions 
  495.         v 1.2         JAN 09,'90  ...Enabled padding on right and left 
  496.                                      sides and added automatically
  497.                                      incrementing extensions because 
  498.                                      I'm lazy. 
  499.         v 1.3         FEB 10,'90  ...Added the /T, /F, /P command line 
  500.                                      switches for people who first 
  501.                                      need to TEST and FIX (and PAD) 
  502.                                      the original SDF file. 
  503.         v 1.4         MAR 12,'90  ...Changed Screens slightly. Cosmetic. 
  504.                                      Added SDF examples to DOC file.
  505.                                      Added sample files to play with.
  506.         v 1.5         APR 14,'90  ...Minor "record counting" bug fix
  507.                                      Does not affect operation.
  508.         v 1.6         MAY 17,'90  ...Added DEMO on first screen, 
  509.                                      better error trapping, a "power 
  510.                                      meter" when records are being 
  511.                                      changed, and two switches: /GLUE 
  512.                                      and /HACK. 
  513.         v 1.7         MAY 21,'90  ...Added "Change" to the Choices.  
  514.                                      CUTZ-SDF will look for a string at 
  515.                                      a position and change it into 
  516.                                      another string IF IT FINDS IT.
  517.         v 1.8         JUL  9,'90  ...Added the LOOKUP file to the 
  518.                                      CHANGE option.  Made some of the 
  519.                                      inputs to allow a space chr at the 
  520.                                      end of a string.  Added /DIM## 
  521.                                      Added Arrow keys to scroll 
  522.                                      records.  Added /B# and /W# for 
  523.                                      screen colors.  Added Alt-J. 
  524.         v 1.9         JUL 30,'90  ...Cosmetic changes to screen, not 
  525.                                      affecting any data Input or data
  526.                                      Output.  Allow exit if "No" to 
  527.                                      question "File only 1 byte, 
  528.                                      Delete it ?" (It was in a loop.)  
  529.         v 2.0         AUG  8,'90  ...Adjusted "Power Meter/Bar" Action. 
  530.                                      Fixed bug which sometimes hangs
  531.                                      using "View Next Record" arrows.
  532.                                      Quit now tells "New file not made." 
  533.  
  534.         Thank you for trying and using CUTZ-SDF.  I hope it helped you 
  535.         at work with that "pesky" SDF file.  Send me just a card if it 
  536.         did.  If you want a reply....be sure to send a SASE along since 
  537.         I'm not charging money for CUTZ-SDF.  This is FREEWARE. 
  538.  
  539.         If you liked this program, MAYBE you would like ANOTHER one 
  540.         which I wrote called CUTZIT which is also FREEWARE (no money,
  541.         payment is required to use it, either).  It CUTs up records and 
  542.         files in 35 or 40 different methods - a virtual LIBRARY of 
  543.         Utilities to cut up, chop, and slice any ASCII and/or Binary 
  544.         file - and it's all in one easy to use program and menu driven.  
  545.         Please order it from the same place you got this program.  If 
  546.         you MUST order from me, the price is $15 which pays for the 
  547.         diskette, mailer, postage, handling, and my Lunch.  (You're 
  548.         Still "Free" to distribute it, however.)  I DON'T WANT TO 
  549.         COMPETE WITH COMPANIES WHO DISTRIBUTE MY SOFTWARE.  $15 SHOULD 
  550.         PROVE THAT, yet make CUTZIT available to anyone who truly 
  551.         cannot find my programs.  $15 is about what the shareware price 
  552.         would be IF it WERE shareware (subjunctive case),.... which is 
  553.         isn't.  Get that frown off your face.... 
  554.  
  555.         Why is it free?  Perhaps as a payback for all those programs I 
  556.         have used by people who placed their programs into the Public 
  557.         Domain and/or at no charge FREEWARE.  My thanks go to them.
  558.         My thanks go, also, to those companies who distribute these 
  559.         Public Domain, Shareware and Freeware programs for us all. 
  560.  
  561.                     ----------------- eof -----------------
  562.  
  563.  
  564.  
  565.          ----------------end-of-author's-documentation---------------
  566.  
  567.                          Software Library Information:
  568.  
  569.                     This disk copy provided as a service of
  570.  
  571.                            Public (software) Library
  572.  
  573.          We are not the authors of this program, nor are we associated
  574.          with the author in any way other than as a distributor of the
  575.          program in accordance with the author's terms of distribution.
  576.  
  577.          Please direct shareware payments and specific questions about
  578.          this program to the author of the program, whose name appears
  579.          elsewhere in  this documentation. If you have trouble getting
  580.          in touch with the author,  we will do whatever we can to help
  581.          you with your questions. All programs have been tested and do
  582.          run.  To report problems,  please use the form that is in the
  583.          file PROBLEM.DOC on many of our disks or in other written for-
  584.          mat with screen printouts, if possible.  PsL cannot debug pro-
  585.          programs over the telephone, though we can answer questions.
  586.  
  587.          Disks in the PsL are updated  monthly,  so if you did not get
  588.          this disk directly from the PsL, you should be aware that the
  589.          files in this set may no longer be the current versions. Also,
  590.          if you got this disk from another vendor and are having prob-
  591.          lems,  be aware that  some files may have become corrupted or
  592.          lost by that vendor. Get a current, working disk from PsL.
  593.  
  594.          For a copy of the latest monthly software library newsletter
  595.          and a list of the 2,000+ disks in the library, call or write
  596.  
  597.                            Public (software) Library
  598.                                P.O.Box 35705 - F
  599.                             Houston, TX 77235-5705
  600.  
  601.                                 1-800-2424-PSL
  602.                              MC/Visa/AmEx/Discover
  603.  
  604.                           Outside of U.S. or in Texas
  605.                           or for general information,
  606.                               Call 1-713-524-6394
  607.  
  608.                           PsL also has an outstanding
  609.                           catalog for the Macintosh.
  610.  
  611.